<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>win</title>
<!-- Bootstrap core CSS -->
<link href="../../asserts/bootstrap-3.3.0/css/bootstrap.min.css" rel="stylesheet">
<!--lib js  -->
<script type="text/javascript" src="../../asserts/jquery-1.11.3/jquery.min.js"></script>
<!-- js加载器 -->
<script type="text/javascript" src="../../src/core/jui.config.js"></script>
<script type="text/javascript" src="../../src/loader/loader.js"></script>
</head>
<body>

<button onclick="show()">show</button>

<script type="text/javascript">

var win,win2;

JUI
.dir('../../src/') // 设置JS存放根目录
.use('Win',function() { // 加载组件
	win = new JUI.Win({
		url:'https://www.baidu.com'
		,title:'标题'
		// 必须要指定宽高
		,remote:true
		// 延迟加载
		,lazyLoad:false
		,width:700
		,height:400
		,buttons:[
		 	{text:'跳转到SOSO',handler:function(){
		 		gososo()
		 	}}
		 	,{text:'取消',handler:function(){
		 		win.hide();
		 	}}
		 ]
	});
});
function gososo() {
	win.setUrl('http:www.soso.com/');
}
function show() {
	win.show();
}

</script>
</body>
</html>